﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CookieCuttr.aspx.cs" Inherits="LifeInSharePoint.EUCookie.Layouts.LifeInSharePoint.EUCookie.admin.CookieCuttr"
    DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" Src="/_controltemplates/LinksTable.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="/_controltemplates/LinkSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ActionBar" Src="/_controltemplates/ActionBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" Src="/_controltemplates/Welcome.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <SharePoint:CssRegistration runat="server" Name="/_layouts/LifeInSharePoint.EUCookie/admin/cookiecuttr_admin.css">
    </SharePoint:CssRegistration>
    <div id="cookieCuttr_container">
        <table class="ms-propertysheet" border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
                <td colspan="2">
                    <div id="cookieCuttr_wrapper">
                        <div id="cookieCuttr_logo">
                            <img src="/_layouts/LifeInSharePoint.EUCookie/images/cookiecuttrlogo.png" />
                        </div>
                        <div id="cookieCuttr_content">
                            <h1>
                                CookieCuttr Options</h1>
                            You can edit all of the various options for CookieCuttr below, you will then need
                            to wrap the following code around the script block...
                            <br />
                            If you require any more assistance or want some extra examples <a href="http://cookiecuttr.com/">
                                click here.</a><br />
                            Credit goes to Chris Wharton for his work creating CookieCuttr and letting me integrate
                            this with SharePoint.
                            <br />
                            <pre>
 if (jQuery.cookie('cc_cookie_accept') == "cc_cookie_accept") {
// this code will not run until cookies have been accepted
 } 

 if (jQuery.cookie('cc_cookie_decline') == "cc_cookie_decline") {
// this code will not run until cookies have been declined
 }			
</pre>
                        </div>
                    </div>
                </td>
            </tr>
            <!-- Google Analytics -->
            <wssuc:InputFormSection id="GoogleAnalytics" title="Google Analytics" runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Enter your Google Analytics ID: <br />
						    <asp:TextBox runat="server" ID="txtGoogleAnalyticsID"></asp:TextBox>
                            <div class="cookieCuttr_info">
                                You need to disable any other plugins that are currently running your  <br />
                                Google Analytics and remove any Google Analyticscode you have in your <br />
                                 templates for this option to work.
                            </div>		 
						</td>
					</tr>
				    <tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    <asp:CheckBox runat="server" ID="cbxEnableGoogleAnalyticsUntilDeclined"/>												    
						    Enable Google Analytics until the website visitor has declined cookies? (implied consent)  
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">						    
                            Enter your domain name (no http://www.): <br />
						    <asp:TextBox runat="server" ID="txtDomainName"></asp:TextBox>
                            <div class="cookieCuttr_info">
                                If you'd like us to remove Google Analytics cookies when a user declines  <br />
                                cookies enter your domain name in above with no www.   <br />
                                e.g. if your domain name is http://www.sharepoint.com please enter in sharepoint.com
                            </div>		 
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Toggle Messages -->
            <wssuc:InputFormSection id="ToggleMessages" title="Toggle Messages" runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    <asp:CheckBox runat="server" ID="cbxToggleMessages"/>												    
						    Switch on for 'Analytics' message and off for 'Cookie Privacy Link' message    
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Button & Link Text -->
            <wssuc:InputFormSection id="CookieButtonTextLink" title="Button and Link Text" description="This section configures the Button and Link text used in the Cookie Cuttr Plugin"
                runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Change 'Accept Cookies' button text:<br />
						    <asp:TextBox runat="server" ID="txtAcceptCookieButtonText" Width="300"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Change 'Decline Cookies' button text:<br /> 
						    <asp:TextBox runat="server" ID="txtDeclineCookieButtonText" Width="300"></asp:TextBox>						    
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Change 'Reset Cookies' button text: <br />
						    <asp:TextBox runat="server" ID="txtResetCookieButtonText" Width="300"></asp:TextBox>						    
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Change 'What are Cookies' link text: <br />
						    <asp:TextBox runat="server" ID="txtWhatAreCookieLinkText" Width="300"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Change 'Discreet Link' link text: <br />
						    <asp:TextBox runat="server" ID="txtDiscreetLinkText" Width="300"></asp:TextBox>
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Button & Link Text -->
            <wssuc:InputFormSection id="ShowTheseButtons" title="Show these buttons..." runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    <asp:CheckBox runat="server" ID="cbxShowAccept"/>
                            Accept
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">						     
						    <asp:CheckBox runat="server" ID="cbxShowDecline"/>						    
                            Decline
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">						    
						    <asp:CheckBox runat="server" ID="cbxShowReset"/>
                            Reset						    
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Disable Page Elements -->
            <wssuc:InputFormSection id="CookieBarStyle" title="Cookie Bar Style" runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">						    
						    <asp:CheckBox runat="server" ID="cbxDisplayDiscreetLink"/>
                            Display the "Discreet Link" ?
						    <br />
                            <div class="cookieCuttr_info">
						    Selecting this option will automatically switch off the other<br />
						    messages on the website and replace with your discreet link text and link.
                            </div>
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">						    
						    <asp:CheckBox runat="server" ID="cbxUseLargeOverlay"/>
	                        Don't want a discreet toolbar? Give me a big overlay!
    					</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Cookie Bar / Discreet Link Positioning -->
            <wssuc:InputFormSection id="CookieBarDiscreetLinkPositioning" title="Cookie Bar / Discreet Link Positioning"
                runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    <asp:CheckBox runat="server" ID="cbxDisplayNotificationAtBottomOfPage"/>
						    Display the notification at the bottom of the page?
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    'Discreet' Position (This positions Discreet Link and Discreet Reset)<br />
						    <asp:DropDownList runat="server" ID="ddlDiscreetLinkPosition"/>			    
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Messages -->
            <wssuc:InputFormSection id="CookieMessages" title="Messages" runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Analytics message (this is the default message): <br />
						    <asp:TextBox runat="server" TextMode="MultiLine" ID="txtAnalyticsMessage" Width="300" Height="100"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    'Cookie Privacy Link' Message (Used when Analytics tick box is off)<br />
						    <asp:TextBox runat="server" TextMode="MultiLine" ID="txtCookiePrivacyLinkMessage" Width="300" Height="100"></asp:TextBox>						    
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    'Error' message (used when Enable div etc. hide feature is on)<br />
						    <asp:TextBox runat="server" TextMode="MultiLine" ID="txtErrorMessage" Width="300" Height="100"></asp:TextBox>						    
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Privacy Policy Page Message: <br />
						    <asp:TextBox runat="server" ID="txtPrivacyPolicyMessage" Width="300"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    <asp:CheckBox runat="server" ID="cbxDifferentMessageOnPolicyPage"/>	
						    You want a different message on your policy page?				    
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Links -->
            <wssuc:InputFormSection id="CookieLinks" title="Links" runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    Your Privacy policy / Cookie policy link: <br />
						    <asp:TextBox runat="server" ID="txtPrivacyPolicyLink" Width="300"></asp:TextBox>
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    'What are Cookies' link<br />
						    <asp:TextBox runat="server" ID="txtWhatAreCookiesLink" Width="300"></asp:TextBox>						    
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <!-- Disable Page Elements -->
            <wssuc:InputFormSection id="DisablePageElements" title="Disable Page Elements" runat="server">
                <template_inputformcontrols>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    <asp:CheckBox runat="server" ID="cbxEnablePageElementDisabler"/>
						    Enable the page element disabler
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    <asp:CheckBox runat="server" ID="cbxActivatePageDisablerWhenVisitorDeclines"/>
						    Only activate page element disabler when visitor Declines cookies (implied consent)
						</td>
					</tr>
					<tr>
						<td nowrap="nowrap" class="ms-authoringcontrols">
						    
                            Disabled CSS Selectors
                            <br />
						    <asp:TextBox runat="server" ID="txtDisabledCSSSelectors" Width="300"></asp:TextBox>    
						    <br />
                            <div class="cookieCuttr_info">
						    Enter the CSS Selectors (comma separated) that you want to disable <br />
                            e.g. .comments, #footer, span.advert, section.advert
                            </div>
						</td>
					</tr>
				</table>
			</Template_Control>
		</wssuc:InputFormControl>
	</template_inputformcontrols>
            </wssuc:InputFormSection>
            <wssuc:ButtonSection runat="server">
                <template_buttons>
		<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" Text="<%$Resources:wss,multipages_okbutton_text%>" id="BtnApply" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
        <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" Text="Save" id="BtnSave"/>
	</template_buttons>
            </wssuc:ButtonSection>
        </table>
    </div>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    LifeInSharePoint - Cookie Cuttr Configuration
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    LifeInSharePoint - Cookie Cuttr Configuration
</asp:Content>
